package com.m3958.firstgwt.server.camel;

import java.util.Date;

import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.apache.camel.builder.RouteBuilder;

import com.google.inject.Inject;

public class ExampleRouter extends RouteBuilder{
	
	@Inject
	private PrintBean pb;

	@Override
	public void configure() throws Exception {
        from("timer:foo?delay=1000&period=200h").bean(pb,"p");
//        .process(new Processor() {
//            public void process(Exchange exchange) throws Exception {
//                System.out.println("Invoked timer at " + new Date());
//            }
//        });
	}

}
